package com.bblocks.standard.feign;


import com.bblocks.standard.entity.SysParam;
import com.bblocks.standard.feign.fallback.SysParamFeignFallBackFactory2;
import com.bblocks.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * SysParamFeign
 *
 * @author XGF
 * @date 2021-12-06 20:06:04
 */
@FeignClient(name = "bblocks-standard-biz",contextId = "SysParamFeign2", fallbackFactory = SysParamFeignFallBackFactory2.class)
public interface SysParamFeign2 {

	@RequestMapping(value = "/system/sysParam/objInner/{paramName}",headers = {"Accept=application/x-kryo-serialization"}, method = RequestMethod.GET)
	R<SysParam> selectOneInnner(@PathVariable("paramName") String paramName);

	@RequestMapping(value ="/system/sysParam/valueInner/{paramName}",headers = {"Accept=application/x-kryo-serialization"}, method = RequestMethod.GET)
	R<String> selectOneValueInnner(@PathVariable("paramName") String paramName,@RequestParam("defaultValue") String defaultValue);

	@RequestMapping(value ="/system/sysParam/objsInner/{paramName}/{count}",headers = {"Accept=application/x-kryo-serialization"}, method = RequestMethod.GET)
	R<List<SysParam>> selectOnesInnner(@PathVariable("paramName") String paramName,@PathVariable("count") Integer count);
}
